<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    //函数式编程
    var first = function(){
        console.log("first excuted");
    }

    var second = function(){
        console.log("second excuted");
    }

    function showFun(fn1, fn2){
        fn1();
        fn2();
    }
    showFun(first, second);
</script>
</html>